package edu.wit.system.mapper;

import edu.wit.common.db.BaseDao;
import edu.wit.system.domain.AffairsApplyWorkflow;
import edu.wit.system.domain.User;
import edu.wit.system.domain.dto.AffairsApplyWorkflowDto;
import edu.wit.system.domain.vo.PersonApplyStatusVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 *
 * @author lee
 * @date 2021-05-26 11:45:36
 */
@Mapper
public interface AffairsApplyWorkflowMapper extends BaseDao<AffairsApplyWorkflow> {
	List<AffairsApplyWorkflow> getTableList(Map<String, Object> params);

	List<AffairsApplyWorkflowDto> getExamineList(Map<String, Object> params);

	void updateApplyStatus(Long applyId,String applyStatus);

	User selectUserByUsername(String username);

	String selectUsernameById(Long userId);

	String selectUsernameByWorkerId(Long personId);

    String selectCompanyNameByCompanyId(Long companyId);

	String selectCompanyIdByCompanyName(String companyName);

    void updateAffairsApplyWorkflow(String applyId,String applyStatus);

	List<PersonApplyStatusVo> selectObjectionListByTeamId(Long teamId,String applyStatus);

	Long selectTeamIdByPersonId (Long personId);
}
